<% form_for(@game) do |f| %>
  <%= f.error_messages %>

  <p>
    <%= f.label :date_played %><br />
    <%= f.date_select :date_played %>
  </p>
  <p>
    <%= f.label :home_team %><br />
    <%= select_tag(:home_team, options_for_select(Team.all.collect {|t| [t.name, t.id] })) %>
  </p>
  <p>
    <%= f.label :visiting_team %><br />
    <%= select_tag(:visiting_team, options_for_select(Team.all.collect {|t| [t.name, t.id] })) %>
  </p>
  <p>
    <%= f.submit 'Save' %>
  </p>
<% end %>